package cz.muni.fi.pa165.dundd.dto;

import java.util.List;
import java.util.Objects;

/**
 *
 * @author xszanto1 <ardos@mail.muni.cz>
 */
public class TroopDTO {

    private Long id;
    private String name;
    private int gold;
    private String mission;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGold() {
        return gold;
    }

    public void setGold(int gold) {
        this.gold = gold;
    }

    public String getMission() {
        return mission;
    }

    public void setMission(String mission) {
        this.mission = mission;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + Objects.hashCode(this.id);
        hash = 97 * hash + Objects.hashCode(this.name);
        hash = 97 * hash + this.gold;
        hash = 97 * hash + Objects.hashCode(this.mission);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TroopDTO other = (TroopDTO) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        if (!Objects.equals(this.name, other.name)) {
            return false;
        }
        if (this.gold != other.gold) {
            return false;
        }
        if (!Objects.equals(this.mission, other.mission)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "TroopDTO{" + "id=" + id + ", name=" + name + ", gold=" + gold + ", mission=" + mission + '}';
    }
    
}
